.class public Lcom/estrongs/fs/impl/local/d;
.super Lcom/estrongs/fs/a;
.source "LocalFileObject.java"


# direct methods
.method public constructor <init>(Landroid/net/LocalSocket;Ljava/io/File;Z)V
    .locals 6

    const-wide/16 v4, -0x1

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move v3, p3

    .line 1
    invoke-direct/range {v0 .. v5}, Lcom/estrongs/fs/impl/local/d;-><init>(Landroid/net/LocalSocket;Ljava/io/File;ZJ)V

    return-void
.end method

.method public constructor <init>(Landroid/net/LocalSocket;Ljava/io/File;ZJ)V
    .locals 2

    .line 2
    invoke-virtual {p2}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/estrongs/fs/a;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {p2}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/estrongs/fs/a;->setName(Ljava/lang/String;)V

    .line 4
    invoke-virtual {p2}, Ljava/io/File;->length()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/estrongs/fs/a;->e:J

    .line 5
    invoke-virtual {p2}, Ljava/io/File;->lastModified()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/estrongs/fs/a;->f:J

    .line 6
    iput-wide p4, p0, Lcom/estrongs/fs/a;->g:J

    const/4 p4, 0x0

    .line 7
    iput-boolean p4, p0, Lcom/estrongs/fs/a;->i:Z

    if-eqz p1, :cond_0

    .line 8
    :try_start_0
    invoke-virtual {p2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p4

    invoke-static {p1, p4}, Les/xj;->a(Landroid/net/LocalSocket;Ljava/lang/String;)Z

    move-result p1

    iput-boolean p1, p0, Lcom/estrongs/fs/a;->i:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    nop

    .line 9
    :cond_0
    :goto_0
    invoke-virtual {p2}, Ljava/io/File;->isDirectory()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 10
    sget-object p1, Lcom/estrongs/fs/l;->c:Lcom/estrongs/fs/l;

    iput-object p1, p0, Lcom/estrongs/fs/a;->a:Lcom/estrongs/fs/l;

    .line 11
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object p1

    invoke-virtual {p2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p4

    invoke-virtual {p1, p4}, Lcom/estrongs/fs/f;->m(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_1

    const/4 p1, 0x1

    .line 12
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    const-string p4, "folder_sticky"

    invoke-virtual {p0, p4, p1}, Lcom/estrongs/fs/a;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_1
    const-string p1, "child_count"

    .line 13
    invoke-virtual {p0, p1}, Lcom/estrongs/fs/a;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p4

    if-nez p4, :cond_3

    if-eqz p3, :cond_3

    .line 14
    new-instance p3, Lcom/estrongs/fs/impl/local/d$a;

    invoke-direct {p3, p0}, Lcom/estrongs/fs/impl/local/d$a;-><init>(Lcom/estrongs/fs/impl/local/d;)V

    invoke-virtual {p2, p3}, Ljava/io/File;->listFiles(Ljava/io/FilenameFilter;)[Ljava/io/File;

    move-result-object p2

    if-eqz p2, :cond_3

    .line 15
    array-length p2, p2

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p0, p1, p2}, Lcom/estrongs/fs/a;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1

    .line 16
    :cond_2
    sget-object p1, Lcom/estrongs/fs/l;->d:Lcom/estrongs/fs/l;

    iput-object p1, p0, Lcom/estrongs/fs/a;->a:Lcom/estrongs/fs/l;

    :cond_3
    :goto_1
    return-void
.end method

.method public constructor <init>(Ljava/io/File;)V
    .locals 2

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 17
    invoke-direct {p0, v0, p1, v1}, Lcom/estrongs/fs/impl/local/d;-><init>(Landroid/net/LocalSocket;Ljava/io/File;Z)V

    return-void
.end method

.method public constructor <init>(Ljava/io/File;J)V
    .locals 6

    const/4 v1, 0x0

    const/4 v3, 0x0

    move-object v0, p0

    move-object v2, p1

    move-wide v4, p2

    .line 18
    invoke-direct/range {v0 .. v5}, Lcom/estrongs/fs/impl/local/d;-><init>(Landroid/net/LocalSocket;Ljava/io/File;ZJ)V

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;JJJ)V
    .locals 0

    .line 19
    invoke-direct {p0, p1}, Lcom/estrongs/fs/a;-><init>(Ljava/lang/String;)V

    .line 20
    invoke-virtual {p0, p2}, Lcom/estrongs/fs/a;->setName(Ljava/lang/String;)V

    .line 21
    iput-wide p3, p0, Lcom/estrongs/fs/a;->e:J

    .line 22
    iput-wide p5, p0, Lcom/estrongs/fs/a;->f:J

    .line 23
    iput-wide p7, p0, Lcom/estrongs/fs/a;->g:J

    .line 24
    sget-object p1, Lcom/estrongs/fs/l;->d:Lcom/estrongs/fs/l;

    iput-object p1, p0, Lcom/estrongs/fs/a;->a:Lcom/estrongs/fs/l;

    return-void
.end method


# virtual methods
.method public a(J)V
    .locals 0

    .line 1
    iput-wide p1, p0, Lcom/estrongs/fs/a;->f:J

    return-void
.end method

.method public g()Z
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/io/File;

    invoke-virtual {p0}, Lcom/estrongs/fs/a;->d()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    return v0
.end method
